package Assignment.Test1;

public class Rectangle extends Shape{

    public Rectangle() {
    }

    public Rectangle(double x, double y) {
        super(x, y);
    }

    @Override
    public double Area() {
        return getX()*getY();
    }

    @Override
    public double perimeter() {
        return (getX()+getY())*2;
    }
}
